using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;

using Microsoft.ConnectionEngine.Registers.Core.ServiceProvider.Common;
using Microsoft.ConnectionEngine.Registers.Core.ServiceProvider.Common.DataSets;

using Microsoft.Practices.EnterpriseLibrary.Data;
using System.Configuration;

namespace Microsoft.ConnectionEngine.Registers.Core.ServiceProvider.DataAccess
{
	public class Message
	{
        public static int MessageTypeValidateBySourceDestinationProvider(string messagetypeid, string sourceserviceproviderid, string destinationserviceproviderid)
        {
            int result = 0;

            Database db = DatabaseFactory.CreateDatabase(DataAccessHelper.GetDefaultConnectionStringName());

            result = (int)db.ExecuteScalar("MessageTypeValidateBySourceDestinationProvider", messagetypeid, sourceserviceproviderid, destinationserviceproviderid);

            return result;
        }
	}
}
